/**
 * 
 */
package com.jquery.ui.uitls;

/**
 * @author linyajun
 * 
 * @date	2013-9-23
 * @description   
 */
public class StringUtils {

	/**
	 * @param str
	 * @return
	 * @author linyajun
	 * @description   null or "" or "&nbsp;&nbsp;&nbsp; &nbsp;" return true,<br/>"abc" or "&nbsp;&nbsp;abc&nbsp;&nbsp;" return false 
	 */
	public static boolean isEmpty(String str){
		if (str==null) {
			return true;
		}
		if ("".equals(str.trim())) {
			return true;
		}
		return false;
	}
	/**
	 * @param str
	 * @return
	 * @description   null or "" or "&nbsp;&nbsp;&nbsp; &nbsp;" return false,<br/>"abc" or "&nbsp;&nbsp;abc&nbsp;&nbsp;" return true 
	 */
	public static boolean isNotEmpty(String str){
		if (str!=null&&!"".equals(str.trim())) {
			return true;
		}
		return false;
	}
	
}
